package com.hualude.roadsign.model;

import javax.persistence.*;

/**
 * Created by xu_jiaHui on 2017/10/17.
 */
@Entity
@Table(name = "tb_iotcmd_msg", schema = "hualude_db", catalog = "")
public class IotcmdMsgEntity {
    private int cmdMsgId;
    private String deviceId;
    private String cmd;
    private String createTime;
    private String sendTime;
    private int cmdStatus;

    public IotcmdMsgEntity() {
    }

    public IotcmdMsgEntity(String deviceId, String cmd, String createTime, String sendTime, int cmdStatus) {
        this.deviceId = deviceId;
        this.cmd = cmd;
        this.createTime = createTime;
        this.sendTime = sendTime;
        this.cmdStatus = cmdStatus;
    }

    @Id
    @Column(name = "CmdMsgId")
    public int getCmdMsgId() {
        return cmdMsgId;
    }

    public void setCmdMsgId(int cmdMsgId) {
        this.cmdMsgId = cmdMsgId;
    }

    @Basic
    @Column(name = "DeviceId")
    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    @Basic
    @Column(name = "Cmd")
    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }


    @Basic
    @Column(name = "CreateTime")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "SendTime")
    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    @Basic
    @Column(name = "CmdStatus")
    public int getCmdStatus() {
        return cmdStatus;
    }

    public void setCmdStatus(int cmdStatus) {
        this.cmdStatus = cmdStatus;
    }

}
